import request from "@/utils/request";

export function commission_online(params) {
  return request({
    url: "commission/online",
    method: "get",
    params
  });
}

export function commission_offline(params) {
  return request({
    url: "commission/offline",
    method: "get",
    params
  });
}

export function commission_pay(params) {
  return request({
    url: "/commission/pay",
    method: "get",
    params
  });
}

export function getCommission(params) {
  return request({
    url: "/getCommission",
    method: "get",
    params
  });
}

export function commission_query(params) {
  return request({
    url: "/commission/query",
    method: "get",
    params
  });
}

export function commission_close(data) {
  return request({
    url: "/commission/close",
    method: "post",
    data: data
  });
}

export function exportOnline(data) {
  return request({
    url: "/commission/exportOnline",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 货到付款佣金账单导出
export function exportOffline(data) {
  return request({
    url: "/commission/exportOffline",
    method: "post",
    responseType: "blob",
    data: data
  });
}
